<?php
/**
 * Each engineer has a duty to keep the code elegant
 * Created by wolffy.
 * Author @wolffy<13750088090@sina.cn>
 * Date: 2018/8/12
 * Time: 11:40
 */
namespace App\Repositories;

use App\Models\CollectMoneyLimit;

class CollectMoneyLimitRepository
{
    /**
     * 查找一条记录
     * @param $id
     * @return mixed
     */
    public function byId($id)
    {
        return CollectMoneyLimit::find($id);
    }

    /**
     * 查找一条记录
     * @param $id
     * @return mixed
     */
    public function byBankCode($bankCode)
    {
        return CollectMoneyLimit::where('bank_code', $bankCode)->first();
    }

    public function get()
    {
        return CollectMoneyLimit::get();
    }



}